﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using EFCore.Sharding.DataAnnotations;
using EFCore.Sharding;

namespace Treca.PushMessage.Entity
{
    /// <summary>
    /// 消息服务推送点管理
    /// </summary>
    [Table("ms_messagepointconfig")]
    [LogicDelete("IsDelete", "0")]
    public class ms_messagepointconfig:BaseEntity
    {

        /// <summary>
        /// 主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 推送点代码
        /// </summary>
        public String pointcode { get; set; }

        /// <summary>
        /// 推送点名称
        /// </summary>
        public String pointname { get; set; }

        /// <summary>
        /// 是否推送
        /// </summary>
        public String ispush { get; set; }

        /// <summary>
        /// AppId
        /// </summary>
        public String appid { get; set; }

        /// <summary>
        /// 跳转小程序Id
        /// </summary>
        public String wxappid { get; set; }

        /// <summary>
        /// 小程序跳转页面
        /// </summary>
        public String pagepath { get; set; }

        /// <summary>
        /// 模板ID
        /// </summary>
        public String templeteId { get; set; }

        /// <summary>
        /// 模板映射规则
        /// </summary>
        public String templeteset { get; set; }

        /// <summary>
        /// 推送人角色ID
        /// </summary>
        public String RoleId { get; set; }

        /// <summary>
        /// 覆盖推送人ID
        /// </summary>
        public String UserId { get; set; }

        /// <summary>
        /// 额外推送人Id
        /// </summary>
        public String ExUserId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public Int32? FsNo { get; set; }=0;

        /// <summary>
        /// 删除标识
        /// </summary>
        public String IsDelete { get; set; }="1";

        /// <summary>
        /// 描述
        /// </summary>
        public String Remark { get; set; }

        /// <summary>
        /// 使用状态
        /// </summary>
        public String StatusFlag { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreateOperator { get; set; }

        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public String ModifyOperator { get; set; }

    }
}